package com.springboot.postgres.service.impl;

import com.springboot.postgres.bean.UserVo;
import com.springboot.postgres.mapper.UserVoMapper;
import com.springboot.postgres.service.UserService;
import com.springboot.postgres.service.base.BaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

/**
 * @author: chenhs
 * @date: Created in 21:43 2020/4/20
 **/
@Repository("userService")
public class UserServiceImpl extends BaseService<UserVo> implements UserService {

    @Autowired
    private UserVoMapper userVoMapper;

    @Override
    public void addUser(UserVo userVo) {
        userVoMapper.addUser(userVo);
    }

    @Override
    public UserVo getUserById(long id) {
        return userVoMapper.getUserById(id);
    }
}
